package com.zyg.service;

import com.zyg.model.Result;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * @author: 牛二
 * @date: 2020/8/20 17:56
 * @email: 550354312@qq.com
 * @project: zyg_project_demo
 * @describe:
 */
public interface FileService {

    /**
     * 保存文件
     * @param multipartFile
     * @return
     */
    Result saveFile(MultipartFile multipartFile);

    /**
     * 文件下载
     * @param id
     * @return
     */
    void getFileById(String id, HttpServletResponse response);

    /**
     * 文件类型转换
     * @param id
     * @param response
     */
    void getFileConversion(String id, HttpServletResponse response);

}
